<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="../../css/bootstrap.min.css">
<link rel="stylesheet" href="../../css/font-awesome.min.css">
<link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
<link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" href="../../css/main.css">
<script src="../../libs/jquery.min.js"></script>
<script src="../../plugins/layer/layer.js"></script>
<script src="../../libs/bootstrap.min.js"></script>
<script src="../../libs/vue.min.js"></script>
<script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
<script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
<script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
<script src="../../js/common.js"></script>
</head>
<style type="text/css">
	.col-sm-10.pror {
		float: left;
		width: 15%;
		padding-left: -130px;
		margin-left: -20px;
	}
	.col-sm-2.control-label.prol {
		/* float: left; */
		width: 10%;
		padding-top: 5px;
	}
</style>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">

			<div class="form-group">

				<div class="col-sm-2 control-label prol">版本</div>
				<div class="col-sm-2 pror">

					<select class="form-control" v-model="q.edition" >
						<option value="">全部</option>
						<option v-for="f in edition_type" :value="f.dValue">
							{{f.dValue}}</option>
					</select>
				</div>
				<div class="col-sm-2 control-label prol">类型</div>
				<div class="col-sm-2 pror">

					<select class="form-control" v-model="q.mtype" >
						<option value="">全部</option>
						<option v-for="f in model_type" :value="f.dValue">
							{{f.dValue}}</option>
					</select>
				</div>
				<div class="col-sm-2 pror">

					<input type="text" class="form-control"  v-model="q.mname" placeholder="模块名称"/>

				</div>

			</div>
			<a class="btn btn-default" @click="query">查询</a>
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group">
				<div class="col-sm-2 control-label">模块名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="name" v-model="dMaterialModel.name" placeholder="模块名称"/>
				</div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">模块类型</div>
			   	<div class="col-sm-2">
			      <!--<input type="text" class="form-control" v-model="dMaterialModel.type" placeholder="类型"/>-->
					<select class="form-control" id="type" v-model="dMaterialModel.type">
						<option v-for="f in material_model" :value="f.dValue">
							{{f.dValue}}</option>
					</select>
			    </div>
				<div class="col-sm-2 control-label">适用范围</div>
				<div class="col-sm-2">
					<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
					<select class="form-control" id="range" v-model="dMaterialModel.range">
						<option value="1">系统</option>

						<option value="0">自己</option>
					</select>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-2 control-label">适用点位</div>
				<div class="col-sm-2">
					<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
					<select class="form-control" id="querytype" v-model="dMaterialModel.querytype">

							<option v-for="f in model_type" :value="f.dKey">
							{{f.dValue}}</option>

					</select>
				</div>

				<div class="col-sm-2 control-label">适用版本</div>
				<div class="col-sm-2">
					<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
					<select class="form-control" id="queryedition" v-model="dMaterialModel.queryedition">
						<option v-for="f in edition_type" :value="f.dKey">
							{{f.dValue}}</option>

					</select>
				</div>
			</div>


			<div class="form-group">
				<div class="col-sm-2 control-label">模块排序</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="dMaterialModel.mpaixu" placeholder="模块排序"/>

				</div>


			</div>



			<div v-show="gtshow" >

				<div class="form-group">
					<div class="col-sm-2 control-label">适用电压等级</div>
					<div class="col-sm-2">
						<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
						<select class="form-control"  v-model="dMaterialModel.queryvoltage">
							<option value="全部">全部</option>
                             <option v-for="f in voltage_type" :value="f.dKey">
								{{f.dValue}}</option>

						</select>
					</div>

					<div class="col-sm-2 control-label">适用导线类型</div>
					<div class="col-sm-2">


						<select class="form-control"  v-model="dMaterialModel.querywire">
							<option value="全部">全部</option>
							<option v-for="f in line_type" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>
				</div>

				<div class="form-group">
					<div class="col-sm-2 control-label">适用线径</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.querylinemin" placeholder="线径最小值"/>

					</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.querylinemax" placeholder="线径最大值"/>

					</div>
				</div>

				<div class="form-group">
					<div class="col-sm-2 control-label">适用档距</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.queryspanmin" placeholder="档距最小值"/>

					</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.queryspanmax" placeholder="档距最大值"/>

					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label">适用角度</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.queryanglemin" placeholder="角度最小值"/>

					</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.queryanglemax" placeholder="角度最大值"/>

					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label">适用材质</div>
					<div class="col-sm-2">
						<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
						<select class="form-control"  v-model="dMaterialModel.querygz">
							<option value="全部">全部</option>
							<option v-for="f in gt_material" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>

					<div class="col-sm-2 control-label">适用拉线数</div>
					<div class="col-sm-2">

							<input type="text" class="form-control" v-model="dMaterialModel.querylaxi" placeholder="拉线数"/>

					</div>
				</div>





				<div class="form-group">
					<div class="col-sm-2 control-label">适用杆型</div>
					<div class="col-sm-2">
						<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
						<select class="form-control"  v-model="dMaterialModel.queryrod">
							<option value="全部">全部</option>
							<option v-for="f in gt_type" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>

					<div class="col-sm-2 control-label">适用杆数</div>
					<div class="col-sm-2">
						<select class="form-control" v-model="dMaterialModel.querycount">
							<option value="全部">全部</option>
							<option v-for="f in gt_count" :value="f.dKey">
								{{f.dValue}}</option>

						</select>
					</div>
				</div>

				<div class="form-group">
					<div class="col-sm-2 control-label">适用杆高</div>
					<div class="col-sm-2">
						<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
						<select class="form-control"  v-model="dMaterialModel.queryheight">
							<option value="全部">全部</option>
							<option v-for="f in gt_height" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>

					<div class="col-sm-2 control-label">适用稍径</div>
					<div class="col-sm-2">
						<select class="form-control"  v-model="dMaterialModel.querydiam">
							<option value="全部">全部</option>
							<option v-for="f in gt_sj" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>
				</div>


			</div>



			<div v-show="byqshow" >

				<div class="form-group">
					<div class="col-sm-2 control-label">变压器类型</div>
					<div class="col-sm-2">
						<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
						<select class="form-control"  v-model="dMaterialModel.querybyqtype">
							<option value="全部">全部</option>
							<option v-for="f in byq_type" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>

					<div class="col-sm-2 control-label">变压器容量</div>
					<div class="col-sm-2">


						<select class="form-control"  v-model="dMaterialModel.querybyqrl">
							<option value="全部">全部</option>
							<option v-for="f in byq_rl" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>
				</div>


				<div class="form-group">
					<div class="col-sm-2 control-label">适用杆质</div>
					<div class="col-sm-2">
						<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
						<select class="form-control"  v-model="dMaterialModel.querybyqgz">
							<option value="全部">全部</option>
							<option v-for="f in byq_gz" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>

					<div class="col-sm-2 control-label">台架杆数</div>
					<div class="col-sm-2">
						<select class="form-control" v-model="dMaterialModel.querycount">
							<option value="全部">全部</option>
							<option v-for="f in gt_count" :value="f.dKey">
								{{f.dValue}}</option>

						</select>
					</div>
				</div>

				<div class="form-group">
					<div class="col-sm-2 control-label">低压出线组数</div>
					<div class="col-sm-2">
						<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
						<select class="form-control"  v-model="dMaterialModel.querybyqcxs">
							<option value="全部">全部</option>
							<option v-for="f in byq_cxs" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>

					<div class="col-sm-2 control-label">引流线</div>
					<div class="col-sm-2">
						<select class="form-control"  v-model="dMaterialModel.querybyqylx">
							<option value="全部">全部</option>
							<option v-for="f in byq_ylx" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>
				</div>
				<div class="form-group">
				<div class="col-sm-2 control-label">适用拉线数</div>
				<div class="col-sm-2">

						<input type="text" class="form-control" v-model="dMaterialModel.querylaxi" placeholder="拉线数"/>

				</div>
				</div>

			</div>



			<div v-show="tjdshow" >

				<div class="form-group">
					<div class="col-sm-2 control-label">适用电压等级</div>
					<div class="col-sm-2">
						<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
						<select class="form-control"  v-model="dMaterialModel.queryvoltage">
							<option value="全部">全部</option>
							<option v-for="f in voltage_type" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>

					<div class="col-sm-2 control-label">适用导线类型</div>
					<div class="col-sm-2">


						<select class="form-control"  v-model="dMaterialModel.querywire">
							<option value="全部">全部</option>
							<option v-for="f in line_type" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>
				</div>

				<div class="form-group">
					<div class="col-sm-2 control-label">适用线径</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.querylinemin" placeholder="线径最小值"/>

					</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.querylinemax" placeholder="线径最大值"/>

					</div>
				</div>

				<div class="form-group">
					<div class="col-sm-2 control-label">适用开关方案</div>
					<div class="col-sm-2">
						<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
						<select class="form-control"  v-model="dMaterialModel.querytjkgfa">
							<option value="全部">全部</option>
							<option v-for="f in tjd_kgfa" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>

					<div class="col-sm-2 control-label">适用开关支架</div>
					<div class="col-sm-2">
						<select class="form-control"  v-model="dMaterialModel.querytjkgzj">
							<option value="全部">全部</option>
							<option v-for="f in tjd_kgzj" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>
				</div>
				<div class="form-group">


					<div class="col-sm-2 control-label">适用稍径</div>
					<div class="col-sm-2">
						<select class="form-control"  v-model="dMaterialModel.querydiam">
							<option value="全部">全部</option>
							<option v-for="f in gt_sj" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>
				</div>


			</div>

			<div v-show="dslxshow" >

				<div class="form-group">
					<div class="col-sm-2 control-label">适用电压等级</div>
					<div class="col-sm-2">
						<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
						<select class="form-control"  v-model="dMaterialModel.queryvoltage">
							<option value="全部">全部</option>
							<option v-for="f in voltage_type" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>

					<div class="col-sm-2 control-label">适用导线类型</div>
					<div class="col-sm-2">


						<select class="form-control"  v-model="dMaterialModel.querywire">
							<option value="全部">全部</option>
							<option v-for="f in line_type" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>
				</div>

				<div class="form-group">
					<div class="col-sm-2 control-label">适用线径</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.querylinemin" placeholder="线径最小值"/>

					</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.querylinemax" placeholder="线径最大值"/>

					</div>
				</div>

				<div class="form-group">
					<div class="col-sm-2 control-label">适用档距</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.queryspanmin" placeholder="档距最小值"/>

					</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.queryspanmax" placeholder="档距最大值"/>

					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label">适用角度</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.queryanglemin" placeholder="角度最小值"/>

					</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.queryanglemax" placeholder="角度最大值"/>

					</div>
				</div>

				<div class="form-group">
					<div class="col-sm-2 control-label">适用杆型</div>
					<div class="col-sm-2">
						<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
						<select class="form-control"  v-model="dMaterialModel.queryrod">
							<option value="全部">全部</option>
							<option v-for="f in gt_type" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>


				</div>

				<div class="form-group">
					<div class="col-sm-2 control-label">适用杆高</div>
					<div class="col-sm-2">
						<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
						<select class="form-control"  v-model="dMaterialModel.queryheight">
							<option value="全部">全部</option>
							<option v-for="f in gt_height" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>

					<div class="col-sm-2 control-label">适用稍径</div>
					<div class="col-sm-2">
						<select class="form-control"  v-model="dMaterialModel.querydiam">
							<option value="全部">全部</option>
							<option v-for="f in gt_sj" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>
				</div>


			</div>

			<div v-show="xhhdshow" >

				<div class="form-group">
					<div class="col-sm-2 control-label">适用电压等级</div>
					<div class="col-sm-2">
						<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
						<select class="form-control"  v-model="dMaterialModel.queryvoltage">
							<option value="全部">全部</option>
							<option v-for="f in voltage_type" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>

					<div class="col-sm-2 control-label">适用导线类型</div>
					<div class="col-sm-2">


						<select class="form-control"  v-model="dMaterialModel.querywire">
							<option value="全部">全部</option>
							<option v-for="f in line_type" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>
				</div>

				<div class="form-group">
					<div class="col-sm-2 control-label">适用线径</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.querylinemin" placeholder="线径最小值"/>

					</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.querylinemax" placeholder="线径最大值"/>

					</div>
				</div>

				<div class="form-group">

					<div class="col-sm-2 control-label">适用稍径</div>
					<div class="col-sm-2">
						<select class="form-control"  v-model="dMaterialModel.querydiam">
							<option value="全部">全部</option>
							<option v-for="f in gt_sj" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>
				</div>


			</div>

			<div v-show="qdshow" >

				<div class="form-group">
					<div class="col-sm-2 control-label">适用电压等级</div>
					<div class="col-sm-2">
						<!--<input type="text" class="form-control" v-model="dMaterialModel.range" placeholder="适用范围(0:系统。1:自己)"/>-->
						<select class="form-control"  v-model="dMaterialModel.queryvoltage">
							<option value="全部">全部</option>
							<option v-for="f in voltage_type" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>

					<div class="col-sm-2 control-label">适用导线类型</div>
					<div class="col-sm-2">


						<select class="form-control"  v-model="dMaterialModel.querywire">
							<option value="全部">全部</option>
							<option v-for="f in line_type" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>
				</div>

				<div class="form-group">
					<div class="col-sm-2 control-label">适用线径</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.querylinemin" placeholder="线径最小值"/>

					</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="dMaterialModel.querylinemax" placeholder="线径最大值"/>

					</div>
				</div>

				<div class="form-group">

					<div class="col-sm-2 control-label">布线方式</div>
					<div class="col-sm-2">
						<select class="form-control"  v-model="dMaterialModel.queryqdbxfs">
							<option value="全部">全部</option>
							<option v-for="f in qd_fs" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>

					<div class="col-sm-2 control-label">墙架点类型</div>
					<div class="col-sm-2">
						<select class="form-control"  v-model="dMaterialModel.queryqdtype">
							<option value="全部">全部</option>
							<option v-for="f in qd_type" :value="f.dKey">
								{{f.dValue}}</option>
						</select>
					</div>
				</div>


			</div>









			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>









</div>

<script src="../../js/modules/bss/dmaterialmodel.js"></script>
</body>
</html>